package com.sjtu.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * nerine
 * 1/28/2020
 */
public class TaskConstants {

    public static final int DEFAULT_TASK_INTERVAL = 60;

    @Getter
    @AllArgsConstructor
    public enum IsEnable {
        YES("Y", "已启用"),
        NO("N", "未启用");

        private String value;
        private String desc;
    }
    @Getter
    @AllArgsConstructor
    public enum TaskType {
        SINGLE("SINGLE", "单实例"),
        ALL("ALL", "所有实例");

        private String value;
        private String desc;
    }
    @Getter
    @AllArgsConstructor
    public enum TaskRunStatus {
        NOT_RUN("NOT_RUN", "未运行"),
        RUNNING("RUNNING", "运行中"),
        SUCCESS("SUCCESS", "运行成功"),
        FAIL("FAIL", "运行失败");

        private String value;
        private String desc;
    }
}
